Range

Function

This API is used to get parameter range for Channel > IPChannel page.

Note:

The Range provides reference information for client UI input limits and API request limits. When sending Get and Set requests, the parameters must be strictly limited according to the Range, otherwise the request may be rejected by the device.

Request Message

None.

Sample:

POST /API/ChannelConfig/IPChannel/Range HTTP/1.1
{ "version": "1.0", "data": {} }

Response Message

Parameter Description

Table 1

ParameterRangeTypeDescription
channel“CH1”…”CH1x”
“IP_CH1”…” IP_CH1x”
“WIFI_CH1”…” WIFI_CH1x”
The number of channels depends on the capabilities of the device.
string arrayEach array bit represents a channel with a string.

Table 2

ParameterRangeTypeDescription
device_infoJSON ObjectJSON show as follow Table 5

Table 3

ParameterRangeTypeDescription
operation_type"AddOrEditChannel",
"EditIPCParam",
"EditIPCPwd"
stringOperation Type: Add or modify channel parameters, edit connection IPC parameters, and edit connection IPC password.
remove_ipc“IP_CH1”…” IP_CH1x”
The number of channels depends on the capabilities of the device.
arrayEach array bit represents a channel with a string.
channel_infoJSON objectJSON show as follow Table 4

Table 4

ParameterRangeTypeDescription
CH1Json ObjectJSON show as follow Table 5
Json Object
IP_CH1Json Object
Json Object
WIFI_CH1Json Object
Json Object

Table 5

ParameterRangeTypeDescription
channel_numintNumber of channels supported by each device.
state"NotConfigured",
"Offline",
"Online"
stringA message is displayed when the channel is not configured.
switch_mode"ManualMode",
"AutoMode"
stringOnly POE channels have this variable."
POE channel mode:
"ManualMode" : manual mode
"AutoMode" : automatic mode
ip_addressMax length: 63bytestringIP Adress
subnet_maskMax length: 15bytestringSubnet mask
gatewayMax length: 15bytestringGateway
dns1Max length: 15bytestringPreferred DNS server, for example, 8.8.8.8.
dns2Max length: 15bytestringStandby DNS server, for example, 8.8.8.8.
port[1~65535]intMedia port
web_port[1~65535]int
protocolMax length: 15bytestringIPC access protocol
usernameMax length: 31bytestring
passwordMax length: 31bytestring
password_emptyboolWhether the password is empty.
camera_mode"Auto",
"Normal",
"Fisheye"
stringCamera mode
manufacturerMax length: 35bytestringDevice type
device_typeMax length: 35bytestringManufacturer
device_type_flagMax length: 32bytestringManufacturer flag, informing the third party IPC can broadcast protocol search, modify IP, but online still to ONVIF protocol online (only for NVR)
mac_addressMax length: 35bytestringMAC adress
software_versionMax length: 40bytestringSoftware version
version_flag[0~255]intVersion flag
security"Risk",
"Weak",
"Medium",
"Strength"
stringCryptographic security
can_modify_pwdboolWhether the password can be changed.
new_passwordMax length: 31bytestringChange a new password.
modify_all_chn_pwdboolWhether to change the passwords of all channels.
network_mode“Dhcp”,
”Static”
stringNetwork model
can_set_netmodeboolThe network mode can be selected.
main_urlMax length: 120bytestringURL of the mainstream
sub_urlMax length: 120bytestringURL of the substream
connect_method"General",
"Security"
stringWhen the ONVIF protocol is used, it is used to indicate whether to use normal mode or safe mode to connect the front-end device.
base_enc_passwordJson ObjectEncrypted Password
hide_network_modeboolWhether to hide the network mode option.
tips_ensure_ip_not_useboolWhether prompt messages are displayed.

Tips:

The response message of the Range request may not contain all the fields in the above table, and the fields not included indicate that the device does not support this parameter configuration.

Sample:

HTTP/1.1 200 OK Content-Type: application/json
{ "result": "success", "data": { "operation_type": { "type": "string", "items": [ "AddOrEditChannel", "EditIPCParam", "SaveCommonParam", "PoeToIpChannel" ] }, "remove_ipc": { "type": "array", "min_size": 0, "max_size": 16, "items": { "type": "string", "items": [ "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8", "CH9", "CH10", "CH11", "CH12", "CH13", "CH14", "CH15", "CH16" ] } }, "channel_max": 16, "default_password": true, "batch_modify_password": true, "restore_channel_connect": true, "auto_add_ipc_hasCheck": { "type": "bool" }, "auto_add_ipc": false, "poe_replace_ipc": false, "channel_info": { "type": "object", "items": { "CH1": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 }, "forward_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH2": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH3": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH4": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH5": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 }, "forward_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH6": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 }, "forward_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH7": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH8": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH9": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH10": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH11": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 }, "forward_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH12": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH13": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH14": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH15": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 }, "forward_port": { "type": "int32", "min": 1, "max": 65535 } } }, "CH16": { "type": "object", "items": { "state": { "type": "string", "items": [ "NotConfigured", "Offline", "Online", "WeakPassword", "NotActivated" ] }, "ip_address": { "type": "string", "min_len": 0, "max_len": 63 }, "subnet_mask": { "type": "string", "min_len": 7, "max_len": 15 }, "subnet_mask_hide": { "type": "bool" }, "gateway": { "type": "string", "min_len": 7, "max_len": 15 }, "port": { "type": "int32", "mode": "rw", "min": 1, "max": 65535, "default_value": 9988 }, "channel_num": { "type": "int32", "min": 0, "max": 128 }, "channel_index": { "type": "int32", "min": 0, "max": 128 }, "protocol": { "type": "string", "items": [ "Private", "Onvif", "RTSP" ] }, "connect_method": { "default": "General", "type": "string", "mode": "rw", "items": [ "General", "Security" ], "default_value": "" }, "username": { "type": "string", "min_len": 0, "max_len": 31 }, "password": { "type": "string", "min_len": 0, "max_len": 31 }, "password_empty": { "type": "bool" }, "manufacturer": { "type": "string", "min_len": 0, "max_len": 35 }, "device_type": { "type": "string", "min_len": 0, "max_len": 35 }, "main_url": { "type": "string", "min_len": 0, "max_len": 120 }, "sub_url": { "type": "string", "min_len": 0, "max_len": 120 }, "mac_address": { "type": "string", "mode": "r", "min_len": 0, "max_len": 35 }, "software_version": { "type": "string", "mode": "r", "min_len": 0, "max_len": 40 }, "network_mode": { "type": "string", "items": [ "Dhcp", "Static" ] }, "web_port": { "type": "int32", "min": 1, "max": 65535 }, "forward_port": { "type": "int32", "min": 1, "max": 65535 } } } } } } }

Error Code

See Response Messages Body and Common error_code for more information.